package com.omybug.study.entity;

import org.springframework.stereotype.Component;

/**
 * @author: omybug
 * @date: 18/9/18 14:04
 */
@Component
public class Car {

    protected String name = "";

    public Car(){
        System.out.println("Car constructor ... ");
    }

    public void init(){
        System.out.println("Car.init-method ... ");
    }

    public void destory(){
        System.out.println("Car.destory-method ...");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
